package org.example.domain.entity.enums;

import org.example.web.result.StateCode;

public enum UserLoginErrorEnum implements StateCode {

    USER_NULL("B000300", "用户记录不存在"),

    USER_NAME_EXIST("B000301", "用户名已存在"),

    USER_EXIST("B000302", "用户记录已存在"),

    USER_SAVE_ERROR("B000303", "用户记录新增失败"),

    USER_LOGIN_STATUS_IS_ABNORMAL("B000204", "当前用户登录状态异常"),

    USER_NAME_SHOULD_NOT_EMPTY("B000204", "用户名不应为空");

    private final String code;

    private final String message;

    UserLoginErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return code;
    }

    @Override
    public String message() {
        return message;
    }
}
